<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-comment">-- | Parsers for unit/module identifiers</span><span>
</span><span id="line-2"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Unit.Parser</span><span>
</span><span id="line-3"></span><span>   </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="GHC.Unit.Parser.html#parseUnit"><span class="hs-identifier">parseUnit</span></a></span><span>
</span><span id="line-4"></span><span>   </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Unit.Parser.html#parseIndefUnitId"><span class="hs-identifier">parseIndefUnitId</span></a></span><span>
</span><span id="line-5"></span><span>   </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Unit.Parser.html#parseHoleyModule"><span class="hs-identifier">parseHoleyModule</span></a></span><span>
</span><span id="line-6"></span><span>   </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Unit.Parser.html#parseModSubst"><span class="hs-identifier">parseModSubst</span></a></span><span>
</span><span id="line-7"></span><span>   </span><span class="hs-special">)</span><span>
</span><span id="line-8"></span><span class="hs-keyword">where</span><span>
</span><span id="line-9"></span><span>
</span><span id="line-10"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Unit.Types.html"><span class="hs-identifier">GHC.Unit.Types</span></a></span><span>
</span><span id="line-13"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Unit.Module.Name.html"><span class="hs-identifier">GHC.Unit.Module.Name</span></a></span><span>
</span><span id="line-14"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html"><span class="hs-identifier">GHC.Data.FastString</span></a></span><span>
</span><span id="line-15"></span><span>
</span><span id="line-16"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#"><span class="hs-identifier">Text.ParserCombinators.ReadP</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">Parse</span></span><span>
</span><span id="line-17"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#"><span class="hs-identifier">Text.ParserCombinators.ReadP</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier">ReadP</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#%3C%2B%2B"><span class="hs-operator">(&lt;++)</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-18"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Char.html#"><span class="hs-identifier">Data.Char</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/GHC.Unicode.html#isAlphaNum"><span class="hs-identifier">isAlphaNum</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="annot"><a href="GHC.Unit.Parser.html#parseUnit"><span class="hs-identifier hs-type">parseUnit</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier hs-type">ReadP</span></a></span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Unit"><span class="hs-identifier hs-type">Unit</span></a></span><span>
</span><span id="line-21"></span><span id="parseUnit"><span class="annot"><span class="annottext">parseUnit :: ReadP Unit
</span><a href="GHC.Unit.Parser.html#parseUnit"><span class="hs-identifier hs-var hs-var">parseUnit</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ReadP Unit
</span><a href="#local-6989586621680829044"><span class="hs-identifier hs-var">parseVirtUnitId</span></a></span><span> </span><span class="annot"><span class="annottext">ReadP Unit -&gt; ReadP Unit -&gt; ReadP Unit
forall a. ReadP a -&gt; ReadP a -&gt; ReadP a
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#%3C%2B%2B"><span class="hs-operator hs-var">&lt;++</span></a></span><span> </span><span class="annot"><span class="annottext">ReadP Unit
</span><a href="#local-6989586621680829043"><span class="hs-identifier hs-var">parseDefUnitId</span></a></span><span>
</span><span id="line-22"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-23"></span><span>    </span><span id="local-6989586621680829044"><span class="annot"><span class="annottext">parseVirtUnitId :: ReadP Unit
</span><a href="#local-6989586621680829044"><span class="hs-identifier hs-var hs-var">parseVirtUnitId</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-24"></span><span>        </span><span id="local-6989586621680829039"><span class="annot"><span class="annottext">IndefUnitId
</span><a href="#local-6989586621680829039"><span class="hs-identifier hs-var">uid</span></a></span></span><span>   </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP IndefUnitId
</span><a href="GHC.Unit.Parser.html#parseIndefUnitId"><span class="hs-identifier hs-var">parseIndefUnitId</span></a></span><span>
</span><span id="line-25"></span><span>        </span><span id="local-6989586621680829038"><span class="annot"><span class="annottext">[(ModuleName, Module)]
</span><a href="#local-6989586621680829038"><span class="hs-identifier hs-var">insts</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP [(ModuleName, Module)]
</span><a href="GHC.Unit.Parser.html#parseModSubst"><span class="hs-identifier hs-var">parseModSubst</span></a></span><span>
</span><span id="line-26"></span><span>        </span><span class="annot"><span class="annottext">Unit -&gt; ReadP Unit
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">IndefUnitId -&gt; [(ModuleName, Module)] -&gt; Unit
</span><a href="GHC.Unit.Types.html#mkVirtUnit"><span class="hs-identifier hs-var">mkVirtUnit</span></a></span><span> </span><span class="annot"><span class="annottext">IndefUnitId
</span><a href="#local-6989586621680829039"><span class="hs-identifier hs-var">uid</span></a></span><span> </span><span class="annot"><span class="annottext">[(ModuleName, Module)]
</span><a href="#local-6989586621680829038"><span class="hs-identifier hs-var">insts</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-27"></span><span>    </span><span id="local-6989586621680829043"><span class="annot"><span class="annottext">parseDefUnitId :: ReadP Unit
</span><a href="#local-6989586621680829043"><span class="hs-identifier hs-var hs-var">parseDefUnitId</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-28"></span><span>        </span><span id="local-6989586621680829034"><span class="annot"><span class="annottext">UnitId
</span><a href="#local-6989586621680829034"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP UnitId
</span><a href="GHC.Unit.Parser.html#parseUnitId"><span class="hs-identifier hs-var">parseUnitId</span></a></span><span>
</span><span id="line-29"></span><span>        </span><span class="annot"><span class="annottext">Unit -&gt; ReadP Unit
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Definite UnitId -&gt; Unit
forall uid. Definite uid -&gt; GenUnit uid
</span><a href="GHC.Unit.Types.html#RealUnit"><span class="hs-identifier hs-var">RealUnit</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">UnitId -&gt; Definite UnitId
forall unit. unit -&gt; Definite unit
</span><a href="GHC.Unit.Types.html#Definite"><span class="hs-identifier hs-var">Definite</span></a></span><span> </span><span class="annot"><span class="annottext">UnitId
</span><a href="#local-6989586621680829034"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-30"></span><span>
</span><span id="line-31"></span><span class="annot"><a href="GHC.Unit.Parser.html#parseUnitId"><span class="hs-identifier hs-type">parseUnitId</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier hs-type">ReadP</span></a></span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#UnitId"><span class="hs-identifier hs-type">UnitId</span></a></span><span>
</span><span id="line-32"></span><span id="parseUnitId"><span class="annot"><span class="annottext">parseUnitId :: ReadP UnitId
</span><a href="GHC.Unit.Parser.html#parseUnitId"><span class="hs-identifier hs-var hs-var">parseUnitId</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-33"></span><span>   </span><span id="local-6989586621680829030"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680829030"><span class="hs-identifier hs-var">s</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">(Char -&gt; Bool) -&gt; ReadP String
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#munch1"><span class="hs-identifier hs-var">Parse.munch1</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span id="local-6989586621680829028"><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680829028"><span class="hs-identifier hs-var">c</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Char -&gt; Bool
</span><a href="../../base/src/GHC.Unicode.html#isAlphaNum"><span class="hs-identifier hs-var">isAlphaNum</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680829028"><span class="hs-identifier hs-var">c</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">||</span></span><span> </span><span class="annot"><span class="annottext">Char
</span><a href="#local-6989586621680829028"><span class="hs-identifier hs-var">c</span></a></span><span> </span><span class="annot"><span class="annottext">Char -&gt; String -&gt; Bool
forall (t :: * -&gt; *) a. (Foldable t, Eq a) =&gt; a -&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#elem"><span class="hs-operator hs-var">`elem`</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;-_.+&quot;</span></span><span class="hs-special">)</span><span>
</span><span id="line-34"></span><span>   </span><span class="annot"><span class="annottext">UnitId -&gt; ReadP UnitId
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">FastString -&gt; UnitId
</span><a href="GHC.Unit.Types.html#UnitId"><span class="hs-identifier hs-var">UnitId</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; FastString
</span><a href="GHC.Data.FastString.html#mkFastString"><span class="hs-identifier hs-var">mkFastString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680829030"><span class="hs-identifier hs-var">s</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span class="annot"><a href="GHC.Unit.Parser.html#parseIndefUnitId"><span class="hs-identifier hs-type">parseIndefUnitId</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier hs-type">ReadP</span></a></span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#IndefUnitId"><span class="hs-identifier hs-type">IndefUnitId</span></a></span><span>
</span><span id="line-37"></span><span id="parseIndefUnitId"><span class="annot"><span class="annottext">parseIndefUnitId :: ReadP IndefUnitId
</span><a href="GHC.Unit.Parser.html#parseIndefUnitId"><span class="hs-identifier hs-var hs-var">parseIndefUnitId</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-38"></span><span>   </span><span id="local-6989586621680829023"><span class="annot"><span class="annottext">UnitId
</span><a href="#local-6989586621680829023"><span class="hs-identifier hs-var">uid</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP UnitId
</span><a href="GHC.Unit.Parser.html#parseUnitId"><span class="hs-identifier hs-var">parseUnitId</span></a></span><span>
</span><span id="line-39"></span><span>   </span><span class="annot"><span class="annottext">IndefUnitId -&gt; ReadP IndefUnitId
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">UnitId -&gt; Maybe UnitPprInfo -&gt; IndefUnitId
forall unit. unit -&gt; Maybe UnitPprInfo -&gt; Indefinite unit
</span><a href="GHC.Unit.Types.html#Indefinite"><span class="hs-identifier hs-var">Indefinite</span></a></span><span> </span><span class="annot"><span class="annottext">UnitId
</span><a href="#local-6989586621680829023"><span class="hs-identifier hs-var">uid</span></a></span><span> </span><span class="annot"><span class="annottext">Maybe UnitPprInfo
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-40"></span><span>
</span><span id="line-41"></span><span class="annot"><a href="GHC.Unit.Parser.html#parseHoleyModule"><span class="hs-identifier hs-type">parseHoleyModule</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier hs-type">ReadP</span></a></span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-type">Module</span></a></span><span>
</span><span id="line-42"></span><span id="parseHoleyModule"><span class="annot"><span class="annottext">parseHoleyModule :: ReadP Module
</span><a href="GHC.Unit.Parser.html#parseHoleyModule"><span class="hs-identifier hs-var hs-var">parseHoleyModule</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ReadP Module
forall {uid}. ReadP (GenModule (GenUnit uid))
</span><a href="#local-6989586621680829021"><span class="hs-identifier hs-var">parseModuleVar</span></a></span><span> </span><span class="annot"><span class="annottext">ReadP Module -&gt; ReadP Module -&gt; ReadP Module
forall a. ReadP a -&gt; ReadP a -&gt; ReadP a
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#%3C%2B%2B"><span class="hs-operator hs-var">&lt;++</span></a></span><span> </span><span class="annot"><span class="annottext">ReadP Module
</span><a href="#local-6989586621680829020"><span class="hs-identifier hs-var">parseModule</span></a></span><span>
</span><span id="line-43"></span><span>    </span><span class="hs-keyword">where</span><span>
</span><span id="line-44"></span><span>      </span><span id="local-6989586621680829021"><span class="annot"><span class="annottext">parseModuleVar :: ReadP (GenModule (GenUnit uid))
</span><a href="#local-6989586621680829021"><span class="hs-identifier hs-var hs-var">parseModuleVar</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-45"></span><span>        </span><span class="annot"><span class="annottext">Char
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Char -&gt; ReadP Char
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#char"><span class="hs-identifier hs-var">Parse.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'&lt;'</span></span><span>
</span><span id="line-46"></span><span>        </span><span id="local-6989586621680829014"><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621680829014"><span class="hs-identifier hs-var">modname</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP ModuleName
</span><a href="GHC.Unit.Module.Name.html#parseModuleName"><span class="hs-identifier hs-var">parseModuleName</span></a></span><span>
</span><span id="line-47"></span><span>        </span><span class="annot"><span class="annottext">Char
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Char -&gt; ReadP Char
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#char"><span class="hs-identifier hs-var">Parse.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'&gt;'</span></span><span>
</span><span id="line-48"></span><span>        </span><span class="annot"><span class="annottext">GenModule (GenUnit uid) -&gt; ReadP (GenModule (GenUnit uid))
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">GenUnit uid -&gt; ModuleName -&gt; GenModule (GenUnit uid)
forall unit. unit -&gt; ModuleName -&gt; GenModule unit
</span><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-var">Module</span></a></span><span> </span><span class="annot"><span class="annottext">GenUnit uid
forall uid. GenUnit uid
</span><a href="GHC.Unit.Types.html#HoleUnit"><span class="hs-identifier hs-var">HoleUnit</span></a></span><span> </span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621680829014"><span class="hs-identifier hs-var">modname</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-49"></span><span>      </span><span id="local-6989586621680829020"><span class="annot"><span class="annottext">parseModule :: ReadP Module
</span><a href="#local-6989586621680829020"><span class="hs-identifier hs-var hs-var">parseModule</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-50"></span><span>        </span><span id="local-6989586621680829006"><span class="annot"><span class="annottext">Unit
</span><a href="#local-6989586621680829006"><span class="hs-identifier hs-var">uid</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP Unit
</span><a href="GHC.Unit.Parser.html#parseUnit"><span class="hs-identifier hs-var">parseUnit</span></a></span><span>
</span><span id="line-51"></span><span>        </span><span class="annot"><span class="annottext">Char
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Char -&gt; ReadP Char
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#char"><span class="hs-identifier hs-var">Parse.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">':'</span></span><span>
</span><span id="line-52"></span><span>        </span><span id="local-6989586621680829005"><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621680829005"><span class="hs-identifier hs-var">modname</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP ModuleName
</span><a href="GHC.Unit.Module.Name.html#parseModuleName"><span class="hs-identifier hs-var">parseModuleName</span></a></span><span>
</span><span id="line-53"></span><span>        </span><span class="annot"><span class="annottext">Module -&gt; ReadP Module
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Unit -&gt; ModuleName -&gt; Module
forall unit. unit -&gt; ModuleName -&gt; GenModule unit
</span><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-var">Module</span></a></span><span> </span><span class="annot"><span class="annottext">Unit
</span><a href="#local-6989586621680829006"><span class="hs-identifier hs-var">uid</span></a></span><span> </span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621680829005"><span class="hs-identifier hs-var">modname</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-54"></span><span>
</span><span id="line-55"></span><span class="annot"><a href="GHC.Unit.Parser.html#parseModSubst"><span class="hs-identifier hs-type">parseModSubst</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/Text.ParserCombinators.ReadP.html#ReadP"><span class="hs-identifier hs-type">ReadP</span></a></span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><a href="GHC.Unit.Module.Name.html#ModuleName"><span class="hs-identifier hs-type">ModuleName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-type">Module</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span>
</span><span id="line-56"></span><span id="parseModSubst"><span class="annot"><span class="annottext">parseModSubst :: ReadP [(ModuleName, Module)]
</span><a href="GHC.Unit.Parser.html#parseModSubst"><span class="hs-identifier hs-var hs-var">parseModSubst</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ReadP Char
-&gt; ReadP Char
-&gt; ReadP [(ModuleName, Module)]
-&gt; ReadP [(ModuleName, Module)]
forall open close a.
ReadP open -&gt; ReadP close -&gt; ReadP a -&gt; ReadP a
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#between"><span class="hs-identifier hs-var">Parse.between</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char -&gt; ReadP Char
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#char"><span class="hs-identifier hs-var">Parse.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'['</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char -&gt; ReadP Char
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#char"><span class="hs-identifier hs-var">Parse.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">']'</span></span><span class="hs-special">)</span><span>
</span><span id="line-57"></span><span>      </span><span class="annot"><span class="annottext">(ReadP [(ModuleName, Module)] -&gt; ReadP [(ModuleName, Module)])
-&gt; (ReadP (ModuleName, Module) -&gt; ReadP [(ModuleName, Module)])
-&gt; ReadP (ModuleName, Module)
-&gt; ReadP [(ModuleName, Module)]
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">(ReadP (ModuleName, Module)
 -&gt; ReadP Char -&gt; ReadP [(ModuleName, Module)])
-&gt; ReadP Char
-&gt; ReadP (ModuleName, Module)
-&gt; ReadP [(ModuleName, Module)]
forall a b c. (a -&gt; b -&gt; c) -&gt; b -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#flip"><span class="hs-identifier hs-var">flip</span></a></span><span> </span><span class="annot"><span class="annottext">ReadP (ModuleName, Module)
-&gt; ReadP Char -&gt; ReadP [(ModuleName, Module)]
forall a sep. ReadP a -&gt; ReadP sep -&gt; ReadP [a]
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#sepBy"><span class="hs-identifier hs-var">Parse.sepBy</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char -&gt; ReadP Char
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#char"><span class="hs-identifier hs-var">Parse.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">','</span></span><span class="hs-special">)</span><span>
</span><span id="line-58"></span><span>      </span><span class="annot"><span class="annottext">(ReadP (ModuleName, Module) -&gt; ReadP [(ModuleName, Module)])
-&gt; ReadP (ModuleName, Module) -&gt; ReadP [(ModuleName, Module)]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-keyword">do</span><span> </span><span id="local-6989586621680829000"><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621680829000"><span class="hs-identifier hs-var">k</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP ModuleName
</span><a href="GHC.Unit.Module.Name.html#parseModuleName"><span class="hs-identifier hs-var">parseModuleName</span></a></span><span>
</span><span id="line-59"></span><span>           </span><span class="annot"><span class="annottext">Char
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Char -&gt; ReadP Char
</span><a href="../../base/src/Text.ParserCombinators.ReadP.html#char"><span class="hs-identifier hs-var">Parse.char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'='</span></span><span>
</span><span id="line-60"></span><span>           </span><span id="local-6989586621680828999"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680828999"><span class="hs-identifier hs-var">v</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">ReadP Module
</span><a href="GHC.Unit.Parser.html#parseHoleyModule"><span class="hs-identifier hs-var">parseHoleyModule</span></a></span><span>
</span><span id="line-61"></span><span>           </span><span class="annot"><span class="annottext">(ModuleName, Module) -&gt; ReadP (ModuleName, Module)
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ModuleName
</span><a href="#local-6989586621680829000"><span class="hs-identifier hs-var">k</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680828999"><span class="hs-identifier hs-var">v</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-62"></span><span>
</span><span id="line-63"></span><span>
</span><span id="line-64"></span></pre></body></html>